/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.xiongda.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeeplus.common.persistence.Page;
import com.jeeplus.common.service.CrudService;
import com.jeeplus.modules.xiongda.entity.XCategory;
import com.jeeplus.modules.xiongda.dao.XCategoryDao;

/**
 * 分类Service
 * @author 缪琼
 * @version 2017-11-29
 */
@Service
@Transactional(readOnly = true)
public class XCategoryService extends CrudService<XCategoryDao, XCategory> {

	@Autowired
	private XCategoryDao xCategoryDao;

	public XCategory get(String id) {
		return super.get(id);
	}
	
	public List<XCategory> findList(XCategory xCategory) {
		return super.findList(xCategory);
	}
	
	public Page<XCategory> findPage(Page<XCategory> page, XCategory xCategory) {
		return super.findPage(page, xCategory);
	}
	
	@Transactional(readOnly = false)
	public void save(XCategory xCategory) {
		super.save(xCategory);
	}
	
	@Transactional(readOnly = false)
	public void delete(XCategory xCategory) {
		super.delete(xCategory);
	}

	public List<String> findParentIds(String parentIds) {
		return xCategoryDao.findParentIds(parentIds);
	}
}